package br.pucrio.inf.aaaong.utils;

import java.util.logging.Level;
import java.util.logging.Logger;

import org.springframework.util.StringUtils;


public class ExceptionLogger {

	public static void log(Exception e) {
		Logger.getAnonymousLogger().log(Level.SEVERE, e.getMessage());
		Logger.getAnonymousLogger().log(Level.SEVERE, StringUtils.arrayToDelimitedString(e.getStackTrace(), "\n"));		
	}

}
